package com.olt.result;
//定义树形封装
public class TreeResult<T> {
    public TreeResult(T value,String id,String parentId,String label) {
        this.id=id;
        this.parentId=parentId;
        this.label=label;
        this.node=value;

    }

    public T getNode() {
        return node;
    }

    public void setNode(T node) {
        this.node = node;
    }

    public T node;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
    // id
    public String id;
    // 父节点Id
    public String parentId;
    //标识
    public String label;

}
